import request from "@/utils/request";

/**
 * 问题反馈单api接口集合
 * @method getList 列表
 * @method postAdd 新增
 * @method putEdit 修改
 * @method deleteDel 删除
 */

export function apiGetList(params,loading) {
    return request({
        url: "/mes/workSubmitCodeController/grid",
        method: "get",
        params,
        autoUntie: false,
        loading
    });
}
export function postAdd(data,loading) {
    return request({
        url: "/mes/workSubmitCodeController/add",
        method: "post",
        data: data,
        loading
    });
}
export function putEdit(data,loading) {
    return request({
        url: "/mes/workSubmitCodeController/edit",
        method: "put",
        data: data,
        loading
    });
}
export function deleteDel(ids,loading) {
    return request({
        url: "/mes/workSubmitCodeController/" + ids,
        method: "delete",
        loading
    });
}
export function getObject(id,loading){
    return request({
        url: "/mes/workSubmitCodeController/" + id,
        method:'get',
        loading
    });
}